%%% multi-sector

\def\Oltm{1/3}
\def\Ostm{1/4}
\def\y0{0.25}
\def\a{1}
\begin{tikzpicture}[scale=1.1, every node/.style={transform shape}]
		
	\begin{axis}[
	      width = 1\linewidth,		
            axis y line = middle,
			axis x line = bottom,
			x label style={at={(axis description cs:0.8,-0.01)},anchor=north},
                y label style={at={(axis description cs:0.15,.5)},rotate=90,anchor=south},
			xlabel = {\small $\xi$: short-term debt cost},
			ylabel = {\small $\lambda$: investment cost},
			ymin = {0.999*\y0 - 0.08}, ymax = 0.8,
			xmin = -0.2, xmax = 1.04,
			xtick = \empty,
			ytick = \empty,
			scaled ticks = true,		
			]
	\draw[very thin, gray!30, step=0.3 cm](0.001, 0.001) grid (1.04, 0.79);
	\fill [blue, domain=0:{(\Oltm - \Ostm)/(1 - \Oltm)}, variable=\x, semitransparent]
		(0, {1 - \Oltm})
		-- plot ({\x}, { (1 - \Ostm )/(\x + 1)})
		-- ({(\Oltm - \Ostm)/(1 - \Oltm)}, {1 - \Oltm})
		-- cycle;
		
	\draw [domain=0:{(\Oltm - \Ostm)/(1 - \Oltm)}, variable=\x]
		plot ({\x}, { (1 - \Ostm )/(\x + 1)});
		
	\fill [blue, domain={(\Oltm - \Ostm)/(1 - \Oltm)}:{(\Oltm - \Ostm)/ (\y0) }, variable=\x, semitransparent]
	({(\Oltm - \Ostm)/(1 - \Oltm)}, { \y0 })
	-- plot ({\x}, { (\Oltm - \Ostm) / (\x) })
	-- ({ (\Oltm - \Ostm)/( \y0 ) }, { \y0 })
	-- cycle;
		
	\draw [ domain={(\Oltm - \Ostm)/(1 - \Oltm)}:{(\Oltm - \Ostm)/ (\y0)}, variable=\x]
	plot ({\x}, { (\Oltm - \Ostm) / (\x) })
	-- ({ (\Oltm - \Ostm)/( \y0 ) }, { \y0 })
	-- (0, { \y0 });
		
	\fill [blue, domain=0:{(\Oltm - \Ostm)/(1 - \Oltm)}, variable=\x, semitransparent]
	(0,{ \y0 })
	-- plot ({\x}, {1 - \Oltm})
	-- ({(\Oltm - \Ostm)/(1 - \Oltm)}, { \y0 })
	-- cycle;
		
	\fill [pink, domain={(\Oltm - \Ostm)/(1 - \Oltm)}:{(\Oltm - \Ostm)/ (\y0) }, variable=\x, semitransparent]
	plot ({\x}, { (\Oltm - \Ostm) / (\x) })
	--plot ({\x}, {1 - \Oltm})
	-- ({ (\Oltm - \Ostm)/( \y0 ) }, { \y0 })
	-- cycle;
		
	\fill [pink, domain= {(\Oltm - \Ostm)/ (\y0) }:{\a},  variable=\x, semitransparent]
	({(\Oltm - \Ostm)/ (\y0) },{ \y0 })
	-- plot ({\x}, {1 - \Oltm})
	-- ({\a}, { \y0 })
	-- cycle;
		
	\draw [ domain={(\Oltm - \Ostm)/(1 - \Oltm)}:{\a}, variable=\x]
	({(\Oltm - \Ostm)/(1 - \Oltm)},{ 1 - \Oltm })
	-- ({\a},  {1 - \Oltm})
	-- ({\a}, { \y0 })
	--({(\Oltm - \Ostm)/ (\y0) },{ \y0 });

     \node at ({(\Oltm - \Ostm)/ (\y0) / 2 - 0.07 },  {(1 - \Ostm )/2 + 0.06 } ) { $P^{\text{ST}}_m$ };

     \node at ({(\Oltm - \Ostm)/ (\y0) + (\a - (\Oltm - \Ostm)/ (\y0) )/2 - 0.05 },  {(1 - \Ostm )/2 + 0.05 } ) { $P^{\text{LT}}_m$ };

    \node at (axis cs: -0.08, {1 - \Ostm}) {\scriptsize{$ 1 - O_m^{\text{ST}}$}};
	\draw [gray, -stealth] (axis cs:  -0.03, {1 - \Ostm}) -- (axis cs:  -0.001, {1 - \Ostm});

    \draw [black, dashed] (axis cs: 0,  {(1 - \Oltm)} ) -- (axis cs: {(\Oltm - \Ostm)/(1 - \Oltm)},  {(1 - \Oltm)});

    \draw [black, dashed] (axis cs: {(\Oltm - \Ostm)/(1 - \Oltm)},  {(1 - \Oltm)}) -- (axis cs: {(\Oltm - \Ostm)/(1 - \Oltm)},  {\y0} ) ;

    \node at (axis cs: -0.08, {1 - \Oltm}) {\scriptsize{$ 1 - O_m^{\text{LT}}$}};
    \draw [gray, -stealth] (axis cs:  -0.03, {1 - \Oltm}) -- (axis cs:  -0.001, {1 - \Oltm});

    \node at (axis cs: -0.04, {\y0}) {\scriptsize{$\ubar{\lambda}$}};
    \draw [gray, -stealth] (axis cs:  -0.03, {\y0}) -- (axis cs:  -0.001, {\y0});

    \node at ({(\Oltm - \Ostm)/(1 - \Oltm)}, {\y0-0.04}) {\scriptsize{$\frac{O_m^{\text{LT}} - O_m^{\text{ST}}}{1 - O_m^{\text{LT}}}$}};
    \draw [gray, -stealth] ({(\Oltm - \Ostm)/(1 - \Oltm)}, {\y0-0.02}) -- ({(\Oltm - \Ostm)/(1 - \Oltm)}, {\y0});

    \node at ({(\Oltm - \Ostm)/\y0}, {\y0-0.04}) {\scriptsize{$\frac{O_m^{\text{LT}} - O_m^{\text{ST}}}{\ubar{\lambda}}$}};
    \draw [gray, -stealth] ({(\Oltm - \Ostm)/\y0}, {\y0-0.02}) -- ({(\Oltm - \Ostm)/\y0}, {\y0});

    \node at ({\a}, {\y0-0.03}) {\scriptsize{$\bar{\xi}$}};
    \draw [gray, -stealth] ({\a}, {\y0-0.02}) -- ({\a}, {\y0});
\end{axis}
		
\end{tikzpicture}